﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package validation.util {
    import flash.utils.*;
    import validation.*;

    public class GlobalValidationUtil implements IValidationUtilClass {

        protected var m_validators:Dictionary;

        public function GlobalValidationUtil(){
            this.loadValidators();
        }
        public function getValidationCallback(_arg1:String):Function{
            return (this.m_validators[_arg1]);
        }
        protected function loadValidators():void{
            this.m_validators = new Dictionary();
            this.m_validators["isVisiting"] = function (_arg1:Object):Boolean{
                var _local2 = !((_arg1.check === "false"));
                return ((Global.isVisiting() == _local2));
            };
            this.m_validators["isLevelAtLeast"] = function (_arg1:Object):Boolean{
                var _local2:int = int(_arg1.level);
                return ((Global.player.level >= _local2));
            };
        }

    }
}//package validation.util 
